import store from "@/store";

export default [
    {
        path: "admins",
        name: "AdminadminsList",
        component: () => import("@/views/admins/list"),
        meta: { title: "管理员列表", authLogin: true },
    },
    {
        path: "adminsadd",
        name: "AdminadminsAdd",
        component: () => import("@/views/admins/add"),
        meta: { title: "添加管理员", authLogin: true },
    },
    {
        path: "adminsupdt",
        name: "AdminadminsUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑管理员", authLogin: true },
    },
    {
        path: "adminsupdtself",
        name: "AdminadminsUpdtSelf",
        props: (route) => ({ id: store.state.user.session.id }),
        component: () => import("@/views/admins/updtself"),
        meta: { title: "编辑管理员", authLogin: true },
    },
    {
        path: "yonghu",
        name: "AdminyonghuList",
        component: () => import("@/views/yonghu/list"),
        meta: { title: "用户列表", authLogin: true },
    },
    {
        path: "yonghuadd",
        name: "AdminyonghuAdd",
        component: () => import("@/views/yonghu/add"),
        meta: { title: "添加用户", authLogin: true },
    },
    {
        path: "yonghuupdt",
        name: "AdminyonghuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/yonghu/updt"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "yonghuupdtself",
        name: "AdminyonghuUpdtSelf",
        props: (route) => ({ id: store.state.user.session.id }),
        component: () => import("@/views/yonghu/updtself"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "youqinglianjie",
        name: "AdminyouqinglianjieList",
        component: () => import("@/views/youqinglianjie/list"),
        meta: { title: "友情链接列表", authLogin: true },
    },
    {
        path: "youqinglianjieadd",
        name: "AdminyouqinglianjieAdd",
        component: () => import("@/views/youqinglianjie/add"),
        meta: { title: "添加友情链接", authLogin: true },
    },
    {
        path: "youqinglianjieupdt",
        name: "AdminyouqinglianjieUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/youqinglianjie/updt"),
        meta: { title: "编辑友情链接", authLogin: true },
    },
    {
        path: "liuyanban",
        name: "AdminliuyanbanList",
        component: () => import("@/views/liuyanban/list"),
        meta: { title: "留言板列表", authLogin: true },
    },
    {
        path: "liuyanban_liuyanren",
        name: "AdminliuyanbanListliuyanren",
        component: () => import("@/views/liuyanban/list-liuyanren"),
        meta: { title: "留言板列表", authLogin: true },
    },
    {
        path: "liuyanbanadd",
        name: "AdminliuyanbanAdd",
        component: () => import("@/views/liuyanban/add"),
        meta: { title: "添加留言板", authLogin: true },
    },
    {
        path: "liuyanbanupdt",
        name: "AdminliuyanbanUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/liuyanban/updt"),
        meta: { title: "编辑留言板", authLogin: true },
    },
    {
        path: "lunbotu",
        name: "AdminlunbotuList",
        component: () => import("@/views/lunbotu/list"),
        meta: { title: "轮播图列表", authLogin: true },
    },
    {
        path: "lunbotuadd",
        name: "AdminlunbotuAdd",
        component: () => import("@/views/lunbotu/add"),
        meta: { title: "添加轮播图", authLogin: true },
    },
    {
        path: "lunbotuupdt",
        name: "AdminlunbotuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/lunbotu/updt"),
        meta: { title: "编辑轮播图", authLogin: true },
    },
    {
        path: "pinglun",
        name: "AdminpinglunList",
        component: () => import("@/views/pinglun/list"),
        meta: { title: "评论列表", authLogin: true },
    },
    {
        path: "pinglun_pinglunren",
        name: "AdminpinglunListpinglunren",
        component: () => import("@/views/pinglun/list-pinglunren"),
        meta: { title: "评论列表", authLogin: true },
    },
    {
        path: "pinglunupdt",
        name: "AdminpinglunUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/pinglun/updt"),
        meta: { title: "编辑评论", authLogin: true },
    },
    {
        path: "pinglunhuifu",
        name: "AdminpinglunhuifuList",
        component: () => import("@/views/pinglunhuifu/list"),
        meta: { title: "评论回复列表", authLogin: true },
    },
    {
        path: "pinglunhuifu_pinglunren",
        name: "AdminpinglunhuifuListpinglunren",
        component: () => import("@/views/pinglunhuifu/list-pinglunren"),
        meta: { title: "评论回复列表", authLogin: true },
    },
    {
        path: "pinglunhuifu_huifuren",
        name: "AdminpinglunhuifuListhuifuren",
        component: () => import("@/views/pinglunhuifu/list-huifuren"),
        meta: { title: "评论回复列表", authLogin: true },
    },
    {
        path: "pinglunhuifuupdt",
        name: "AdminpinglunhuifuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/pinglunhuifu/updt"),
        meta: { title: "编辑评论回复", authLogin: true },
    },
    {
        path: "shoucang",
        name: "AdminshoucangList",
        component: () => import("@/views/shoucang/list"),
        meta: { title: "收藏列表", authLogin: true },
    },
    {
        path: "shoucang_username",
        name: "AdminshoucangListusername",
        component: () => import("@/views/shoucang/list-username"),
        meta: { title: "收藏列表", authLogin: true },
    },
    {
        path: "xuexiziliao",
        name: "AdminxuexiziliaoList",
        component: () => import("@/views/xuexiziliao/list"),
        meta: { title: "学习资料列表", authLogin: true },
    },
    {
        path: "xuexiziliao_faburen",
        name: "AdminxuexiziliaoListfaburen",
        component: () => import("@/views/xuexiziliao/list-faburen"),
        meta: { title: "学习资料列表", authLogin: true },
    },
    {
        path: "xuexiziliaoadd",
        name: "AdminxuexiziliaoAdd",
        component: () => import("@/views/xuexiziliao/add"),
        meta: { title: "添加学习资料", authLogin: true },
    },
    {
        path: "xuexiziliaoupdt",
        name: "AdminxuexiziliaoUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xuexiziliao/updt"),
        meta: { title: "编辑学习资料", authLogin: true },
    },
    {
        path: "xuexiziliaodetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminxuexiziliaoDetail",
        component: () => import("@/views/xuexiziliao/detail"),
        meta: { title: "学习资料详情", authLogin: true },
    },
    {
        path: "ziliaoleixing",
        name: "AdminziliaoleixingList",
        component: () => import("@/views/ziliaoleixing/list"),
        meta: { title: "资料类型列表", authLogin: true },
    },
    {
        path: "ziliaoleixingadd",
        name: "AdminziliaoleixingAdd",
        component: () => import("@/views/ziliaoleixing/add"),
        meta: { title: "添加资料类型", authLogin: true },
    },
    {
        path: "ziliaoleixingupdt",
        name: "AdminziliaoleixingUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/ziliaoleixing/updt"),
        meta: { title: "编辑资料类型", authLogin: true },
    },
    {
        path: "gonggao",
        name: "AdmingonggaoList",
        component: () => import("@/views/gonggao/list"),
        meta: { title: "公告列表", authLogin: true },
    },
    {
        path: "gonggao_faburen",
        name: "AdmingonggaoListfaburen",
        component: () => import("@/views/gonggao/list-faburen"),
        meta: { title: "公告列表", authLogin: true },
    },
    {
        path: "gonggaoadd",
        name: "AdmingonggaoAdd",
        component: () => import("@/views/gonggao/add"),
        meta: { title: "添加公告", authLogin: true },
    },
    {
        path: "gonggaoupdt",
        name: "AdmingonggaoUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/gonggao/updt"),
        meta: { title: "编辑公告", authLogin: true },
    },
    {
        path: "gonggaodetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmingonggaoDetail",
        component: () => import("@/views/gonggao/detail"),
        meta: { title: "公告详情", authLogin: true },
    },
];
